package com.yan.design.comon.controller;

import com.yan.design.comon.annotation.EncryptionMethod;
import com.yan.design.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shengren.yan
 * @create 2022-07-08
 */
@RestController
public class AController {


    @EncryptionMethod
    @GetMapping("testA")
    public User testA() {

        User u = new User();
        u.setUsername("222");
        u.setAge(2);
        System.out.println(u);
        System.out.println(u.getUsername());

        return u;
    }


}
